	class Object_helper  {
		
		//
		// merge two objects, one from the user
		// and is JSON, the other is the default
		// values this object should have
		//
		
		
		//
		// merge two objects, one from the user
		// and is JSON, the other is the default
		// values this object should have
		//
		public static function merge( o:Dynamic, defaults:Dynamic ):Dynamic {
			
			for (prop in defaults ) {
				if( o[prop] == undefined )
					o[prop] = defaults[prop];
			}
			return o;
		}
		
		public static function merge_2( json:Dynamic, defaults:Dynamic ):Void {
			
			for (prop in json ) {
				
				// trace( prop +' = ' + json[prop]);
				defaults[prop] = json[prop];
			}
		}
	}
